import Immutable from 'immutable'
import * as  actionTypes from '../action/actionTypes'

// 获取用户登录信息
export const getUserInfo = (state = Immutable.fromJS({}), action) => {
  switch (action.type) {
    case actionTypes.userInfo:
      return action.data
    default:
      return state
  }
}